home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2010 Summer - Disc 1 / WN_Ete2010_CD1.iso / Onglet5 / Weezo / Weezo setup.exe / {code_appDir} / www / themes / themePreviewMenu.php < prev    next >
PHP Script  |  2010-05-19  |  2KB  |  47 lines

  1. <?php
  2. if(!isset($_GET['theme'])) exit;
  3. require(INCLUDE_DIR.'outputFunctions.php');
  4. echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'."\n";
  5. echo '<HTML><HEAD>'."\n";
  6. // No cache
  7. //echo '<meta http-equiv="expires" content="0">'."\n";
  8. // Charset
  9. echo '<meta http-equiv="content-type" content="text/html; charset=utf-8">'."\n";
  10. echo cfScriptLink('common.js');
  11. // Title
  12. echo '<TITLE>'.$_GET['theme'].'</TITLE>'."\n";
  13. // Load theme :
  14. echo '<link rel="stylesheet" type="text/css" href="'.cfUTF8Encode("/themes/".$_GET['theme'].'/theme.css')."\">\n";
  15. // Find theme
  16. $t=$_GET['theme'];
  17.  
  18. $_SESSION['lng']['genLogout']="Logout";
  19. cfUSetVar('icon','default.jpg');
  20. cfUSetVar('name','Admin');
  21.  
  22. $_SESSION['res'][0]['name']="Music";
  23. $_SESSION['res'][0]['resourceJsLink']="#";
  24. $_SESSION['res'][0]['resourceIcon']="/res/explorer/music1/resourceIcon.png";
  25. $_SESSION['res'][0]['resourceTypeLabel']="Test";
  26.  
  27. $_SESSION['res'][1]['name']="Explorer";
  28. $_SESSION['res'][1]['resourceJsLink']="#";
  29. $_SESSION['res'][1]['resourceIcon']="/res/explorer/File1/resourceIcon.png";
  30. $_SESSION['res'][1]['resourceTypeLabel']="Test";
  31.  
  32. $_SESSION['res'][2]['name']="Photo";
  33. $_SESSION['res'][2]['resourceJsLink']="#";
  34. $_SESSION['res'][2]['resourceIcon']="/res/explorer/photo2/resourceIcon.gif";
  35. $_SESSION['res'][2]['resourceTypeLabel']="Test";
  36.  
  37.  
  38.  
  39. // Insert theme specific menu script
  40. if(file_exists(cfAppDocRoot().'/themes/'.$_GET['theme'].'/menu.php')) require_once($_GET['theme'].'/menu.php');
  41. // If theme has no specific menu, use common menu
  42. else require_once('common/menu.php');
  43. displayMenu();
  44. ?>
  45. </body>
  46. </html>
  47.